<?
	$sanpham=$t->get_by_thutu("sanpham",-1,1);	
?>
<div class="thongke">
<a href="<?=$rooturl?><?=$list['3']['alias'];?>.html">
Tất cả <span style="color:#ff3000;">(<?=mysql_num_rows($sanpham)?>)</span>
</a>
</div>
<?
	$sp_l=$t->get_by_thutu("sanpham_loai",-1,1);
	while($row_l=mysql_fetch_assoc($sp_l)){
	$idloai=$row_l['id'];
	$sanpham=$t->get_by_thutu("sanpham",-1,1," and idloai='$idloai'");	
?>
	<div class="thongke">
    <a href="<?=$rooturl?><?=$list['3']['alias'];?>/<?=convert($row_l['ten_'.$lang])?>-<?=$row_l['id']?>.html">
    <?=$row_l['ten_'.$lang]?> <span style="color:#ff3000;">(<?=mysql_num_rows($sanpham)?>)</span>
    </a>
    </div>
<? }?>